package com.samphanie.auiu.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.samphanie.auiu.common.dto.RoleDto;
import com.samphanie.auiu.mbg.model.SysRole;

import java.util.List;
import java.util.Optional;
import java.util.Set;

/**
 * @author Dries
 * @email 1451691457@qq.com
 */
public interface IRoleService extends IService<SysRole> {

    Set<SysRole> findByAuthorityIn(Set<String> authority);

    Optional<SysRole> findOptionalByAuthority(String authority);

    Optional<SysRole> findOptionalByRoleName(String roleName);

    boolean add(RoleDto role);

    List<RoleDto> listRoleList();
}
